import request from '@/utils/request'

//获取收藏列表
export function queryCollectList(params) {
	return request({
		method: 'get',
		url: 'myCollectInfo/query',
		params
	})
}

//添加收藏
export function addedCollect(data) {
	return request({
		method: 'post',
		url: 'myCollectInfo/add',
		data,
	})
}

//删除收藏
export function deleteCollect(id) {
	return request({
		method: 'get',
		url: 'myCollectInfo/delete/' + id,
	})
}

//是否收藏
export function isCollects(params) {
	return request({
		method: 'get',
		url: 'myCollectInfo/isCollect',
		params
	})
}